﻿@model IRIS.Models.LinkViewModel

@{
    ViewBag.Title = "Index";
}

@section SubMenu
{
    <ul id="submenu">
        @foreach (var item in Model.m_linkCategories)
        { 
            <li>@Html.ActionLink(item.Name, "../LinkCategry/Index/", new { id = item.ID }) </li>
        
        }
    </ul>
}
<div class="span-17 last">
@foreach (var linkCategories in Model.m_linkCategories)
{
    
    <div class="links">
    
    <h4>@linkCategories.Name</h4>
    @foreach (var links in Model.m_links)
    {
        if(linkCategories.ID==links.CID)
        { 
            <ul>
               <li>
                    <a href="http://@links.URL">@links.Title</a>-<span> @links.Description</span>
                </li>
            </ul>   
        }
    }
    </div>
}
 </div>